package com.atguigu.stgy.app;

import com.atguigu.stgy.common.config.MinioConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

//https://www.bootschool.net/ascii;bsid=157CA3132F7064666DBAAAC2235B57F6
/*
    web-app引入了common的依赖
        springboot项目启动时会扫描自动配置文件 如果满足要求就创建组件对象注入到容器中
 */
@SpringBootApplication(exclude = MinioConfig.class)
@EnableAsync //启用异步任务
@EnableScheduling //启用定时任务
public class WebAppApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebAppApplication.class , args);
    }
}
